﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="PostProduct.aspx.cs" Inherits="DoAnWeb.PostProduct" %>
<%@ Register assembly="CKEditor.NET" namespace="CKEditor.NET" tagprefix="CKEditor" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <br />
    <br />
<br />
    <br />
    <table class="style1" style="padding: 3px">

        <tr>
            <td align="center" class="style2" colspan="2" style="text-align: center; font-size: 33px; background-color: #CCCCFF;">
                <strong>Đăng sản phẩm</strong></td>
        </tr>
        <tr>
            <td align="right" style="padding: 10px; font-weight: bold;" class="style6">
                &nbsp;</td>
            <td align="left" style="padding: 10px">
<asp:Label ID="lbThongBao" runat="server" Font-Bold="True" ForeColor="#0066FF"></asp:Label>
            </td>
        </tr>
        <tr>
            <td align="right" style="padding: 10px; font-weight: bold;" class="style6">
                Tiêu đề :</td>
            <td align="left" style="padding: 10px">
                <asp:TextBox ID="txtTieuDe" runat="server" Width="400px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rfvTieuDe" runat="server" 
                    ControlToValidate="txtTieuDe" ErrorMessage="Bạn chưa nhập tiêu đề" 
                    Font-Bold="True" ForeColor="Red" SetFocusOnError="True">*</asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td align="right" style="padding: 10px; font-weight: bold;" valign="top" 
                class="style6">
                Mô tả :</td>
            <td style="padding: 10px" align="left">
                <CKEditor:CKEditorControl ID="ckNoiDung" runat="server">
                </CKEditor:CKEditorControl>
                <asp:RequiredFieldValidator ID="rfvMoTa" runat="server" 
                    ControlToValidate="ckNoiDung" ErrorMessage="Bạn chưa nhập mô tả sản phẩm" 
                    Font-Bold="True" ForeColor="Red" SetFocusOnError="True">*</asp:RequiredFieldValidator>
                
            </td>
        </tr>
        <tr>
            <td align="right" style="padding: 10px; font-weight: bold;" class="style6" 
                valign="top">
                Hình ảnh :</td>
            <td align="left" style="padding: 10px" valign="top">
                <asp:FileUpload ID="fuUploadHinhAnh" class="multi max-3 accept-jpg|gif" runat="server" />
                <asp:CustomValidator ID="CustomValidator1" runat="server" 
                    ErrorMessage="Chưa nhập hình ảnh của sản phẩm" Font-Bold="True" ForeColor="Red" 
                    onservervalidate="CustomValidator1_ServerValidate" SetFocusOnError="True">*</asp:CustomValidator>
            </td>
        </tr>
        <tr>
            <td align="right" style="padding: 10px; font-weight: bold;" valign="top" 
                class="style6">
                Địa chỉ :</td>
            <td align="left" style="padding: 10px">
                <asp:TextBox ID="txtDiaChi" runat="server" Height="61px" TextMode="MultiLine" 
                    Width="363px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rfvDiaChi" runat="server" 
                    ControlToValidate="txtDiaChi" ErrorMessage="Bạn chưa nhập địa chỉ" 
                    Font-Bold="True" ForeColor="Red" SetFocusOnError="True">*</asp:RequiredFieldValidator>
                
            </td>
        </tr>
        <tr>
            <td align="right" style="padding: 10px; font-weight: bold;" class="style6">
                Điện thoại : </td>
            <td align="left" style="padding: 10px">
                <asp:TextBox ID="txtDienThoai" runat="server" Width="166px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rfvDienThoai" runat="server" 
                    ControlToValidate="txtDienThoai" ErrorMessage="Bạn chưa nhập điện thoại" 
                    Font-Bold="True" ForeColor="Red" SetFocusOnError="True">*</asp:RequiredFieldValidator>
                
            </td>
        </tr>
        <tr>
            <td align="right" style="padding: 10px; font-weight: bold;" class="style6">
                Gía gốc :</td>
            <td align="left" style="padding: 10px">
                <asp:TextBox ID="txtGiaGoc" runat="server" Width="166px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rfvGiaGoc" runat="server" 
                    ControlToValidate="txtGiaGoc" ErrorMessage="gốc của sản phẩm" 
                    Font-Bold="True" ForeColor="Red" SetFocusOnError="True">*</asp:RequiredFieldValidator>
                
            </td>
        </tr>
        <tr>
            <td align="right" style="padding: 10px; font-weight: bold;" class="style6">
                Phần trăm khuyến mãi :</td>
            <td align="left" style="padding: 10px">
                <asp:TextBox ID="txtPhanTram" runat="server" Width="166px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rfvPhamTramKhuyenMai" runat="server" 
                    ControlToValidate="txtPhanTram" ErrorMessage="Bạn chưa nhập phần trăm khuyến mãi" 
                    Font-Bold="True" ForeColor="Red" SetFocusOnError="True">*</asp:RequiredFieldValidator>
                
            </td>
        </tr>
        <tr>
            <td align="right" style="padding: 10px; font-weight: bold;" class="style6">
                Loại sản phẩm :</td>
            <td align="left" style="padding: 10px">
                <asp:DropDownList ID="dlLoaiSanPham" runat="server" Height="33px" Width="175px">
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td align="right" style="padding: 10px" class="style6">
                &nbsp;</td>
            <td align="left" style="padding: 10px">
                <asp:ValidationSummary ID="ValidationSummary1" runat="server" Font-Bold="True" 
                    ForeColor="Red" HeaderText="Error list :" />
            </td>
        </tr>
        <tr>
            <td align="right" style="padding: 10px" class="style6">
                <asp:Button ID="btnDangSanPham" runat="server" Height="38px" Text="Đăng " 
                    Width="95px" onclick="btnDangSanPham_Click" />
            </td>
            <td align="left" style="padding: 10px">
                <asp:Button ID="Button2" runat="server" Height="38px" Text="Hủy" Width="92px" 
                    CausesValidation="False" PostBackUrl="~/Default.aspx"  />
            </td>
        </tr>
    </table>
    <br />
</asp:Content>
